package com.alignet.gn.util;

import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

public class DateFormatExample {

	public static void main(String[] args) {
		
	}
	
	public static void maine(String[] args) {
        Calendar calendario = GregorianCalendar.getInstance();
        Date fecha = calendario.getTime();
       
SimpleDateFormat formatoDeFecha = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss");
         

	}
	

    
    	 public static void main7(String[] args) {
    	        // Make a String that has a date in it, with MEDIUM date format
    	        // and SHORT time format.
    	        String dateString = "Nov 4, 2003 8:14 PM";

    	        // Get the default MEDIUM/SHORT DateFormat
    	        DateFormat format =
    	            DateFormat.getDateTimeInstance(
    	            DateFormat.MEDIUM, DateFormat.SHORT);

    	        // Parse the date
    	        try {
    	            Date date = format.parse(dateString);
    	           
    	        }
    	        catch(ParseException pe) {
    	           
    	        }
    	    }
	
    
}